<%@ page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<%@ include file="/app/include.jsp"%>
		<script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/common/My97DatePicker/WdatePicker.js"></script>
		<script type="text/javascript">
			 
		</script>
	</head>
	<body>
		<div class="right_content">
			<ul class="breadcrumb">
				<li>
					样本数据
					<span>/</span>
				</li>
				<li class="active">
					体质测评
				</li>
			</ul>
			<div class="list-wrap">
				<form id="queryForm" name="queryForm" action="${pageContext.request.contextPath}/ha/phy/loadPhydataList.do">
					<div class="pull">
						<div class="pull-left">
							姓名&nbsp;<input id="username" name="username" type="text" style="width: 240px;" value="${username}"/>
							起始日期&nbsp;<input class="Wdate" type="text" name="startdate" value="${startdate}" style="width:150px" id="startdate" onClick="WdatePicker()"/>  
							截至日期&nbsp;<input class="Wdate" type="text" name="enddate" value="${enddate}" style="width:150px" id="enddate" onClick="WdatePicker()"/>  
						</div>
						<div class="pull-right">
							<input type="button" class="btn btn-primary" value="查询" onclick="Page.queryPage();"/>
							<input type="button" class="btn btn-primary" value="重置" onclick="Page.clearForm();"/>
							<input type="button" class="btn btn-primary" value="数据导出" onclick="add();"/>
						</div>
					</div>
				</form>
				<div class="table-wrap">
					<table border="0" cellpadding="0" cellspacing="0" class="list">
						<thead>
							<tr>
								<th style="width: 10%">序号</th>
								<th style="width: 10%">姓名</th>
								<th style="width: 5%">性别</th>
								<th style="width: 10%">年龄</th>
								<th>测评时间</th> 
								<th style="width: 20%">操作</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach var="result" items="${page.list}" varStatus="status">
							<tr>
								<td align="center">${page.pageSize * (page.pageNo - 1) + status.index + 1 }</td>
								<td>${result.username}</td>
								<td>${result.usersex}</td>
								<td>${result.agenum}</td>
								<td>${result.surveydate}</td> 
								<td  align="center">
									<a href="javascript:void(0);" onclick="edit('${result.id }');">修改</a>&nbsp;&nbsp;
									<a href="javascript:void(0);" onclick="del('${result.id }');">删除</a>
								</td>
							</tr>
							</c:forEach>
							<c:if test="${fn:length(page.list) == 0}">
								<tr>
									<td colspan=7 align="center"><font color=red><strong>没有找到体质测评样本数据！</strong></font></td>
								</tr>
							</c:if>
						</tbody>
					</table>
				</div>

				<!--分页开始-->
				${page.operate }
				<!--/分页结束-->
			</div>
		</div>
	</body>
</html>